﻿using System;

namespace PQ.Helper2
{
    public class Utils2
    {
        /// <summary>
        /// 返回URL编码字符
        /// </summary>
        /// <param name="strIn">需要编码的内容</param>
        /// <param name="encoding">编码</param>
        /// <returns></returns>
        public static string StrConvUrlEncoding(string strIn, string encoding)
        {
            return System.Web.HttpUtility.UrlEncode(strIn, System.Text.Encoding.GetEncoding(encoding));
        }
    }
}
